import request from '@/router/axios'

export function fetchWxArticleTypeList(query) {
  return request({
    url: '/mp/wxarticletype/page',
    method: 'get',
    params: query
  })
}

export function addWxArticleTypeObj(obj) {
  return request({
    url: '/mp/wxarticletype',
    method: 'post',
    data: obj
  })
}

export function getWxArticleTypeObj(id) {
  return request({
    url: '/mp/wxarticletype/' + id,
    method: 'get'
  })
}

export function delWxArticleTypeObj(id) {
  return request({
    url: '/mp/wxarticletype/' + id,
    method: 'delete'
  })
}

export function putWxArticleTypeObj(obj) {
  return request({
    url: '/mp/wxarticletype',
    method: 'put',
    data: obj
  })
}


export function getWxArticleTypeList() {
  return request({
    url: '/mp/wxarticletype/getWxArticleTypeList',
    method: 'get'
  })
}